﻿using Hangfire.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HangfireTaskDemo
{
    internal class NoLogProvicer : ILogProvider
    {
        public ILog GetLogger(string name)
        {
            return new NoLog();
        }
    }

    internal class NoLog : ILog
    {
        public bool Log(LogLevel logLevel, Func<string> messageFunc, Exception exception = null)
        {
            return false;
        }
    }
}
